<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<style>
    body {
        background: url("img/bg.jpg");
        background-size: auto;
        background: url(img/true.jpg) no-repeat 0px 0px;

        background-size: cover;
        background-attachment: fixed;
        width: 100%;
        height: 100%;
        font-family: 'Open Sans', sans-serif;
        margin: 0;
        background-color: #000000;

    }

</style>
<head>
    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改消费账单</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>

</head>
<body style="background-color: #1b6d85">
<%--修改--%>
<div id="main">
<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">修改消费账单</h3>
    <form action="${pageContext.request.contextPath}/UpdateTowServlet" method="post">
        <%--            隐藏域提交id--%>
        <c:forEach items="${user}" var="user" varStatus="s">
        <input type="hidden" name="id" value="${user.id}">
        <div class="form-group">
            <label for="name">姓名：</label>
            <input type="text" class="form-control" id="name" name="name" value="${user.name}" readonly="readonly"
                   placeholder="请输入姓名"/>
        </div>
        <label for="name">价格：</label>
        <div class="form-group">
            <input type="text" class="form-control" id="price" name="price" value="${user.price}" placeholder="请输入消费金额">
        </div>

        <div class="form-group">
                <%--@declare id="address"--%><label for="address">类型：</label>
            <select name="type" class="form-control" id="jiguan">
                <option value="生活用品">生活用品</option>
                <option value="一日三餐">一日三餐</option>
                <option value="日常水果">日常水果</option>
                <option value="日常购物">日常购物</option>
            </select>
        </div>

        <div class="form-group">
            <label for="time">消费时间：</label>
            <input type="datetime-local" class="form-control" id="time" name="time" placeholder="请输入消费时间">
        </div>
</div>
</c:forEach>

<div class="form-group" style="text-align: center">
    <input class="btn btn-primary" type="submit" value="提交"/>
    <input class="btn btn-default" type="reset" value="重置"/>
    <%--                <input class="btn btn-default" type="button" value="返回"/>--%>
    <input type="submit" class="btn btn-default" value="返回"/>
</div>
</form>
</div>
</div>
</body>
</html>